package com.example.mbl.dao;

import com.example.mbl.dto.StudentDto;
import com.example.mbl.entity.Alumni;
import com.example.mbl.result.business.AlumniPageResult;
import com.example.mbl.result.business.StudentPageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AlumniMapper {
    int deleteByPrimaryKey(String alumniid);

    int insert(Alumni record);

    int insertSelective(Alumni record);

    Alumni selectByPrimaryKey(String alumniid);

    int updateByPrimaryKeySelective(Alumni record);

    int updateByPrimaryKey(Alumni record);

    int insertAlumniBatch(StudentDto studentDto);

    List<AlumniPageResult> getAlumniList(@Param("year") String year,
                                          @Param("start") int start,
                                          @Param("pagesize") int pagesize);

    int setAlumniVisible(String alumniid);
}